package com.qijia.travel.domain;

import java.lang.reflect.Method;

import com.qijia.travel.helper.ObjectHelper;

public class Tream {

	private Integer treamId;
	private String treamName;
	private String treamDesc;

	public Integer getTreamId() {
		return treamId;
	}

	public void setTreamId(Integer treamId) {
		this.treamId = treamId;
	}

	public String getTreamName() {
		return treamName;
	}

	public void setTreamName(String treamName) {
		this.treamName = treamName;
	}

	public String getTreamDesc() {
		return treamDesc;
	}

	public void setTreamDesc(String treamDesc) {
		this.treamDesc = treamDesc;
	}
	
	public String toString() {
		Method[] ms = this.getClass().getDeclaredMethods();
		String s = "";
		for (Method m : ms) {
			if (m.getName().indexOf("get") != 0)
				continue;
			try {
				s += m.getName() + "-->"
						+ ObjectHelper.invokeMethod(this, m.getName()) + " \n ";
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return s;
	}

}